<template>
    <view class="uni-swipe data-v-02a7d146">
        <view
            @mousedown="parseEventDynamicCode($event, swipe.mousedown)"
            @mouseleave="parseEventDynamicCode($event, swipe.mouseleave)"
            @mousemove="parseEventDynamicCode($event, swipe.mousemove)"
            @mouseup="parseEventDynamicCode($event, swipe.mouseup)"
            @touchend="parseEventDynamicCode($event, swipe.touchend)"
            @touchmove="parseEventDynamicCode($event, swipe.touchmove)"
            @touchstart="parseEventDynamicCode($event, swipe.touchstart)"
            :change:prop="swipe.sizeReady"
            class="uni-swipe_box data-v-02a7d146"
            :data-disabled="disabled"
            :data-threshold="threshold"
            :prop="btn"
        >
            <view class="uni-swipe_button-group button-group--left data-v-02a7d146">
                <slot name="left" v-if="$slots.left"></slot>
                <block v-else>
                    <view
                        @touchend="__e"
                        @touchstart="__e"
                        @tap.stop.prevent="__e"
                        class="uni-swipe_button button-hock data-v-02a7d146"
                        :data-button="btn"
                        :data-event-opts="[
                            ['touchstart', [['appTouchStart', ['$event']]]],
                            ['touchend', [['appTouchEnd', ['$event', index, '$0', 'left'], [[['leftOptions', '', index]]]]]],
                            ['tap', [['onClickForPC', [index, '$0', 'left'], [[['leftOptions', '', index]]]]]]
                        ]"
                        :style="
                            'background-color:' +
                            (item.style && item.style.backgroundColor ? item.style.backgroundColor : '#C7C6CD') +
                            ';' +
                            'font-size:' +
                            (item.style && item.style.fontSize ? item.style.fontSize : '16px') +
                            ';'
                        "
                        v-for="(item, index) in leftOptions"
                        :key="index"
                    >
                        <text class="uni-swipe_button-text data-v-02a7d146" :style="'color:' + (item.style && item.style.color ? item.style.color : '#FFFFFF') + ';'">
                            {{ item.text }}
                        </text>
                    </view>
                </block>
            </view>
            <view class="uni-swipe_text--center data-v-02a7d146">
                <slot></slot>
            </view>
            <view class="uni-swipe_button-group button-group--right data-v-02a7d146">
                <slot name="right" v-if="$slots.right"></slot>
                <block v-else>
                    <view
                        @touchend="__e"
                        @touchstart="__e"
                        @tap.stop.prevent="__e"
                        class="uni-swipe_button button-hock data-v-02a7d146"
                        :data-button="btn"
                        :data-event-opts="[
                            ['touchstart', [['appTouchStart', ['$event']]]],
                            ['touchend', [['appTouchEnd', ['$event', index, '$0', 'right'], [[['rightOptions', '', index]]]]]],
                            ['tap', [['onClickForPC', [index, '$0', 'right'], [[['rightOptions', '', index]]]]]]
                        ]"
                        :style="
                            'background-color:' +
                            (item.style && item.style.backgroundColor ? item.style.backgroundColor : '#C7C6CD') +
                            ';' +
                            'font-size:' +
                            (item.style && item.style.fontSize ? item.style.fontSize : '16px') +
                            ';'
                        "
                        v-for="(item, index) in rightOptions"
                        :key="index"
                    >
                        <text class="uni-swipe_button-text data-v-02a7d146" :style="'color:' + (item.style && item.style.color ? item.style.color : '#FFFFFF') + ';'">
                            {{ item.text }}
                        </text>
                    </view>
                </block>
            </view>
        </view>
    </view>
</template>
<script module="swipe" lang="wxs" src="@/uni_modules/uni-swipe-action/components/uni-swipe-action-item/index.wxs"></script>
<script>
import tabBar from '@/components/TabBar/tabBar';
(global.webpackJsonp = global.webpackJsonp || []).push([
    ['uni_modules/uni-swipe-action/components/uni-swipe-action-item/uni-swipe-action-item'],
    {
        '10f9': function (n, t, e) {
            'use strict';

            t.a = function (n) {
                n.options.wxsCallMethods || (n.options.wxsCallMethods = []);
                n.options.wxsCallMethods.push('closeSwipe');
                n.options.wxsCallMethods.push('change');
            };
        },
        '2a65': function (n, t, e) {
            'use strict';

            e.r(t);
            var i = e('4c10');
            var o = e('6a33');
            for (var a in o) {
                if (['default'].indexOf(a) < 0) {
                    (function (n) {
                        e.d(t, n, function () {
                            return o[n];
                        });
                    })(a);
                }
            }
            e('700c');
            var u = e('f0c5');
            var c = e('10f9');
            var s = Object(u.a)(o.default, i.b, i.c, false, null, '02a7d146', null, false, i.a, void 0);
            if ('function' == typeof c.a) {
                Object(c.a)(s);
            }
            t.default = s.exports;
        },
        '4c10': function (n, t, e) {
            'use strict';

            e.d(t, 'b', function () {
                return i;
            });
            e.d(t, 'c', function () {
                return o;
            });
            e.d(t, 'a', function () {});
            var i = function () {
                this.$createElement;
                this._self._c;
            };
            var o = [];
        },
        '52a1': function (n, t, e) {},
        '6a33': function (n, t, e) {
            'use strict';

            e.r(t);
            var i = e('b1dd');
            var o = e.n(i);
            for (var a in i) {
                if (['default'].indexOf(a) < 0) {
                    (function (n) {
                        e.d(t, n, function () {
                            return i[n];
                        });
                    })(a);
                }
            }
            t.default = o.a;
        },
        '700c': function (n, t, e) {
            'use strict';

            var i = e('52a1');
            e.n(i).a;
        },
        b1dd: function (n, t, e) {
            'use strict';

            var i = e('4ea4');
            Object.defineProperty(t, '__esModule', {
                value: true
            });
            t.default = void 0;
            var o = {
                mixins: [i(e('e2b2')).default],
                props: {
                    show: {
                        type: String,
                        default: 'none'
                    },
                    disabled: {
                        type: Boolean,
                        default: false
                    },
                    autoClose: {
                        type: Boolean,
                        default: true
                    },
                    threshold: {
                        type: Number,
                        default: 20
                    },
                    leftOptions: {
                        type: Array,
                        default: function () {
                            return [];
                        }
                    },
                    rightOptions: {
                        type: Array,
                        default: function () {
                            return [];
                        }
                    }
                },
                inject: ['swipeaction']
            };
            t.default = o;
        }
    }
]);
(global.webpackJsonp = global.webpackJsonp || []).push([
    'uni_modules/uni-swipe-action/components/uni-swipe-action-item/uni-swipe-action-item-create-component',
    {
        'uni_modules/uni-swipe-action/components/uni-swipe-action-item/uni-swipe-action-item-create-component': function (n, t, e) {
            e('543d').createComponent(e('2a65'));
        }
    },
    [['uni_modules/uni-swipe-action/components/uni-swipe-action-item/uni-swipe-action-item-create-component']]
]);
</script>
<style>
@import './uni-swipe-action-item.css';
</style>
